import { initDB } from "../db";
import { COL_MEDIA } from "../db/config";

export async function editTags(key: string, tags: string[]) {
	const db = await initDB();
	const mp3 = db.collection(COL_MEDIA);
	await mp3.updateOne({ key }, { $set: { tags } });
}
